from apscheduler.schedulers.blocking import BlockingScheduler
from datetime import datetime
import os


def job():
    now_time = datetime.datetime.now().replace(microsecond=0)
    print("hello f world !", now_time)
    os.system('python clock_14.py')


if __name__ == '__main__':
    scheduler = BlockingScheduler()
    scheduler.add_job(job, 'cron', day_of_week='0-6', hour=7, minute=5)
    scheduler.add_job(job, 'cron', day_of_week='0-6', hour=11, minute=5)
    scheduler.add_job(job, 'cron', day_of_week='0-6', hour=17, minute=5)
    scheduler.add_job(job, 'cron', day_of_week='0-6', hour=21, minute=5)
    scheduler.start()
